/**
 * Created by python on 18-10-3.
 */


// 退出登陆,ajax的get写法
function logout() {
    $.get('/admin/logout', function (resp) {
        if (resp.errno == "0") {
            // 代表退出成功
            location.href="/admin/login"
        }else {
            alert(resp.errmsg)
        }
    })
}